<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use DB;

class IndexController extends Controller
{
    // 前台首页
    public function index()
    {	
    	// 查询数据库
    	$res = DB::table('type') -> get();

    	$row = DB::table('goods') -> get();
		// dd($row);
    	return view('home.index.index',['res'=>$res,'row'=>$row]);
    }
}
